﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Studio.Foundation.Cache;

public partial class Cache_Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        object text;
        if (CacheServer.TryGet(CacheServer.DEFAULT_CONTEXT, "mykey", out text))
        {
            Response.Write(text);
            Studio.Foundation.Cache.CacheServer.ClearContext(CacheServer.DEFAULT_CONTEXT);
        }
        else
            Response.Write("no cache");
    }
}